Skip to content

fix: remove session storage from TypeScript agent config#1306

Merged
jesseturner21 merged 2 commits into
mainfrom
remove-session-storage-typescript
May 19, 2026
Merged

fix: remove session storage from TypeScript agent config#1306
jesseturner21 merged 2 commits into
mainfrom
remove-session-storage-typescript

Conversation

@jesseturner21
Copy link
Copy Markdown
Contributor

Summary

  • Hides the "Session filesystem storage" advanced setting in the TUI wizard when the selected language is TypeScript (not supported for TS agents)
  • Adds validation that rejects --session-storage-mount-path with a clear error for TypeScript agents in non-interactive mode

Test plan

  • Existing unit tests pass (219 validate tests, 36 generate wizard tests)
  • Verify TUI does not show "Session filesystem storage" option when creating a TypeScript agent
  • Verify TUI still shows the option for Python agents
  • Verify agentcore add agent --language TypeScript --session-storage-mount-path /mnt/data returns an error

TypeScript agents do not support session storage, so hide the option
from the TUI advanced settings and reject the CLI flag with a clear
error message during validation.
@jesseturner21 jesseturner21 requested a review from a team May 19, 2026 16:39
@github-actions github-actions Bot added the size/xs PR size: XS label May 19, 2026
@github-actions github-actions Bot added the agentcore-harness-reviewing AgentCore Harness review in progress label May 19, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label May 19, 2026
@agentcore-devx-automation
Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label May 19, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-0.14.0.tgz

How to install

npm install https://github.com/aws/agentcore-cli/releases/download/pr-1306-tarball/aws-agentcore-0.14.0.tgz

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 19, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 43.73% 9272 / 21201
🔵 Statements 42.98% 9839 / 22887
🔵 Functions 40.51% 1604 / 3959
🔵 Branches 40.46% 6029 / 14901
Generated in workflow #3106 for commit 040f4c1 by the Vitest Coverage Report Action

Copy link
Copy Markdown

@agentcore-cli-automation agentcore-cli-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, focused fix. Two things worth addressing before merge — one is a real gap in the validation, the other is a missing test for the new branch.

Comment thread src/cli/commands/add/validate.ts Outdated
Comment thread src/cli/commands/add/validate.ts Outdated
@github-actions github-actions Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label May 19, 2026
… test

Addresses review feedback:
- Move the TypeScript rejection to the top of validateAddAgentOptions so
  it runs before any protocol-specific early returns (MCP, import, etc.)
- Add unit test asserting BYO+TypeScript+sessionStorageMountPath is rejected
@github-actions github-actions Bot added size/s PR size: S and removed size/xs PR size: XS labels May 19, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label May 19, 2026
@agentcore-devx-automation
Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label May 19, 2026
@jesseturner21 jesseturner21 merged commit f1f6719 into main May 19, 2026
31 of 34 checks passed
@jesseturner21 jesseturner21 deleted the remove-session-storage-typescript branch May 19, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants